package com.simple.portal.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.portal.bo.IUserGroupRelBO;
import com.simple.portal.dao.IUserGroupRelDAO;
import com.simple.portal.vo.UserGroupRelVO;

@Service("userGroupRelBO")
@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class UserGroupRelBOImpl implements IUserGroupRelBO {
	
	@Autowired
	private IUserGroupRelDAO userGroupRelDAO;
	@Override
	public UserGroupRelVO findById(String id) {
		
		return userGroupRelDAO.findById(id);
	}

	@Override
	public List<UserGroupRelVO> findAll() {
		
		return userGroupRelDAO.findAll();
	}

	@Override
	public List<UserGroupRelVO> findByUserId(String userId) {
		// TODO Auto-generated method stub
		return userGroupRelDAO.findByUserId(userId);
	}

}
